/*###################################################################*
#
# MPGL Engine - CrossPlatform OpenGL Engine
# Copyright (C) 2013  Mitchell Pell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
####################################################################*/

#ifndef GL_APP_SCENE_H
#define GL_APP_SCENE_H

#include "../Base/Drawable.h"
#include "../Base/Logical.h"
#include "../GLApp/GLAppComponents/GLAppComponents.h"

namespace mp_gl
{
	class GLAppScene : public Drawable, public Logical
	{
	public:
		GLAppScene():Drawable(){m_ac = NULL;}
		GLAppScene(GLAppComponents* ac){m_ac = ac;}
		virtual ~GLAppScene(){}

		virtual void Initialize(){Updateable::Initialize();}
		virtual void Uninitialize(){Updateable::Uninitialize();}
		virtual void LoadContent(){Drawable::LoadContent();}
		virtual void UnloadContent(){Drawable::UnloadContent();}
		virtual void Update()=0;
		virtual void Draw()=0;
		virtual void UpdateLogic()=0;
		void SetAppComponents(GLAppComponents* ac){m_ac = ac;}
	protected:
		GLAppComponents* m_ac;
	};
}
#endif